package com.ffox.service.impl;

import com.ffox.entity.StudentInformation;
import com.ffox.mapper.UserParentMychildMapper;
import com.ffox.result.Result;
import com.ffox.service.UserParentMychildService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserParentMychildServiceImpl implements UserParentMychildService {
    @Autowired
    private UserParentMychildMapper userTeacherClassMapper;
    @Override
    public Result<List<StudentInformation>> getStudentListByNumber(String number) {
        return Result.success("查询成功",userTeacherClassMapper.getStudentListByNumber(number));
    }

    @Override
    public Integer updateStudentUserNum(String idCard, String number) {
        return userTeacherClassMapper.updateStudentUserNum(idCard,number);
    }
}
